#ifndef __NIOS2_FLASH_H
#define __NIOS2_FLASH_H

#define FLASH_SECTOR_SIZE1  (8*1024)
#define FLASH_SECTOR_SIZE2  (64*1024)

int flash_erase_sector(int base,int sector);
int flash_write_word(int base, int addr, int data);
int flash_write_file(int base, int addr, int *data, int bcnt);

#endif
